package com.gxuwz.easyschool;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

public class SystemSettingsActivity extends AppCompatActivity {
    private TextView clear_save;
    private ImageView system_settings_back;
    private Button login_out;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_system_settings);
        clear_save = findViewById(R.id.clear_save);
        clear_save.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(SystemSettingsActivity.this,"清除缓存成功",Toast.LENGTH_SHORT);
            }
        });
        login_out = findViewById(R.id.login_out);
        login_out.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(SystemSettingsActivity.this,MainActivity.class);
                startActivity(intent);
            }
        });
        system_settings_back = findViewById(R.id.system_settings_back);
        system_settings_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}